Skip to content

Comments

fix: rename map parameter from 'key' to 'index' for clarity#152

Open
hobostay wants to merge 1 commit intoagentsmd:mainfrom
hobostay:fix/map-index-naming
Open

fix: rename map parameter from 'key' to 'index' for clarity#152
hobostay wants to merge 1 commit intoagentsmd:mainfrom
hobostay:fix/map-index-naming

Conversation

@hobostay
Copy link

Summary

  • Rename the second parameter of Array.map() from key to index in ExampleListSection component
  • This improves code readability and avoids confusion with React's key prop
  • Makes the intent clearer that this is the array index being used for conditional rendering

Changes

  • Updated components/ExampleListSection.tsx to use index instead of key as the map callback parameter
  • Updated usages in hideOnSmall and hideOnMedium props

Test plan

  • Build passes successfully (npm run build)
  • No functional changes - this is purely a naming improvement for code clarity

🤖 Generated with Claude Code

Rename the second parameter of Array.map() from 'key' to 'index' in
ExampleListSection component. This improves code readability and avoids
confusion with React's 'key' prop, while making the intent clearer
that this is the array index being used for conditional rendering.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 12, 2026

@hobostay is attempting to deploy a commit to the openai Team on Vercel.

A member of the Team first needs to authorize it.

@Pjrich1313
Copy link

This is my repo I have permission

Copy link

@Pjrich1313 Pjrich1313 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is my vault why I can't deploy it

Copy link

@Pjrich1313 Pjrich1313 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review

@hobostay
Copy link
Author

Hi @Pjrich1313!

To fix the Vercel deployment authorization, you'll need to authorize the deployment. The authorization link should be available in the Vercel bot comment above, or you can:

  1. Go to Vercel and sign in
  2. Navigate to the openai team
  3. Find the agents-md project settings
  4. Re-authorize the GitHub integration

Once authorized, the CI checks will automatically re-run and should pass. The code changes in this PR look good! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants